<?php

// verificacion para inicio de session
$mensaje="";
//include 'js/conexion.php'; 

//Inicio de variables de sesión
	
if (!isset($_SESSION)) {
  session_start();
}
//VERIFICAR SI CLIQUEO BOTON SUBMIT
if(isset($_POST['entrar']))
{
	

//Recibir los datos ingresados en el formulario
$usuarioN1=sha1($_POST['usuario']);
$contrasenaN1=sha1($_POST['contrasena']);

$usuario=md5($usuarioN1);
$contrasena=md5($contrasenaN1);

echo $usuario;
echo "<br>";
echo $contrasena;



}

?>

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
	<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1' />
	<link rel='stylesheet' type='text/css' href='js/styles.css' />
<style type="text/css">

.fondo #contenido .letras2 {
	text-align: center;
}

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
</style>
</head>
<body class="fondo">
    <div id="baner" align="center" > 
<table width="1049" border="0" align="center">
  <tr>
    <td width="227" valign="bottom">
    <img  src="js/images/unnamed.png" width="220" height="120
    ">
    </td>
    <td width="510" align="center" valign="bottom"><img src="js/images/logo_infop_2.png" width="340" height="120"></td>
    <td width="290" valign="bottom"><img  src="js/images/logo_republica.png" width="220" height="125"></td>
  </tr>
</table>





</div>
<br/>
<div id="contenido" align="center" class="contenido"> 
  <table width="600" align="center" width="200" border="0">
 
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
   	 <div  align="center"  class="box effect5" >  
    <form   action="#" id="login" method="post" name="login" >
      <p>
      <table  align="center" border="0">
      
      <tr>
      <td ><h10 >Usuario</h10></td>
      <td><input type="text" id="usuario"  name="usuario"/></td>
      <td></td>
      </tr>
      
       <tr>
      <td><h10>Contraseña</h10>  </td>
      <td><input type="password" id="contrasena" name="contrasena"  /></td>
      <td></td>
      </tr>
      
       <tr>
         <td></td>
         <td>&nbsp;</td>
         <td></td>
       </tr>
       <tr>
         <td></td>
         <td><input type="submit" value="Entrar" name="entrar"/></td>
         <td></td>
       </tr>
       <tr>
         <td></td>
         <td>&nbsp;</td>
         <td></td>
       </tr>
       <tr>
      <td colspan="3"></td>
      </tr>
      
      </table>
     
      </p>
    <a style="color:#F30"><?php echo $mensaje; ?></a>
    </form>
   	  </div></td>
    
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
  
</div>

</body>
</html>